<?php
  /**
  * Wards Management
  * @author: trungdt
  * @since: Jan 26, 2011
  * @version: 1.0
  * For HuyBDS Project
  * 
  */
  if (!defined('EXPONENT')) exit('');
  
  $max_item =15;
    
  // Administrator access restrict
  if (exponent_users_isAdmin())
  {
    // set flow
    exponent_flow_set(SYS_FLOW_PROTECTED,SYS_FLOW_ACTION);
    
    $data=$db->selectObjects("provinces");
    $template=new template("rsmanagemodule","_provinces_management");
    $template->assign("data",$data);
    $template->register_permissions(array("administrate"),$loc);
    $template->output();
  }
  else
  {
      echo SITE_403_HTML;
  }
?>
